"""
URL patterns for nopbx.device
"""
from django.conf.urls.defaults import *

urlpatterns = patterns('nopbx.device.views',
    (r'^$', 'index'),
    (r'^(?P<id>[0-9A-Za-f]+)/$', 'edit'),
    (r'^(?P<device>[0-9A-Za-f]+)/line/(?P<index>[0-9]+)/$', 'edit_line'),
    (r'^(?P<device>[0-9A-Za-f]+)/line_label/(?P<index>[0-9]+)/$', 'line_label'),

    (r'^config/SEP(?P<mac_address>[0-9a-fA-F]{12})\.cnf\.xml$', 'config'),	# Cisco 79x1
    (r'^config/(?P<mac_address>[0-9a-fA-F]{12})\.cfg$', 'config'),		# Polycom
)

